package com.qihang.core.dao;

import com.qihang.common.PagerModel;
import com.qihang.core.domain.MenuEntity;

public interface MenuDao {
	
	/**
	 * 判断菜单是否存在
	 * @param user
	 * @return
	 */
	public boolean isExistMenu(MenuEntity paramMenu);

	/**
	 * 删除菜单
	 * 
	 * @param paramUser
	 * @return
	 */
	public abstract void delMenu(MenuEntity paramMenu);

	/**
	 * 更新菜单
	 * 
	 * @param paramUser
	 * @return
	 */
	public abstract void updateMenu(MenuEntity paramMenu);

	/**
	 * 根据条件获取菜单
	 * 
	 * @return
	 */
	public abstract PagerModel getMenuList(MenuEntity paramMenu);

	/**
	 * 获取一个菜单
	 * 
	 * @param paramUser
	 * @return
	 */
	public abstract MenuEntity getMenu(MenuEntity paramMenu);

	/**
	 * 添加菜单
	 * 
	 * @param user
	 * @return
	 */
	public boolean addMenu(MenuEntity paramMenu);
	
}
